package com.buyingtickets.service;

import com.buyingtickets.entity.Order;
import com.buyingtickets.entity.QueryParameter;
import com.buyingtickets.entity.Ticket;

import java.util.List;

public interface OrderBiz {
    public List<Order> queryAll();//查询所有订单
    public List<Order> queryByQueryOrder(QueryParameter qp);//分页查询订单
    public int queryCountQueryOrder(QueryParameter qp);//分页查询订单
    public Order queryByID(int id);//根据订单ID查找
    public int update(Order order);//根据订单ID修改
    public  int delete(int id);//根据订单ID删除
    public List<Ticket> queryAllTicket();//查询所有的车票
    public List<Ticket> queryByQueryTicket(QueryParameter qp);//分页查询车票
    public int queryCountQueryTicket(QueryParameter qp);//分页查询车票
    public Ticket queryByTID(int id);//根据车票ID查找
    public int updateT(Ticket ticket);//根据车票ID修改
    public  int deleteT(int id);//根据车票ID删除
}
